package com.woniuxy.array02;

/**
 * description: TestAarrys <br>
 * date: 2022/2/1 8:28 下午 <br>
 * author: shesaifei <br>
 * version: 1.0 <br>
 */

import java.util.Arrays;

/**
 * 测试java.util.Arrays工具类的使用
 */
public class TestAarrys {
    public static void main(String[] args) {
        int[] a = {10, 20, 30, 110, 45, 200, 13};
        System.out.println(Arrays.toString(a));
        //排序
        Arrays.sort(a);
        System.out.println(Arrays.toString(a));
        System.out.println(Arrays.binarySearch(a, 20));
    }
}
